package test.构造函数

fun main(args: Array<String>) {

}

class Person3(val name:String,var age:Int){ //必须要有的属性
    var phone = ""
    //次构函数
    constructor(name:String,age:Int,phone:String):this(name,age){
        this.phone = phone
    }
}